package com.sinosoft.zyemr.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CheckInfoEntityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CheckInfoEntityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPcaseIdIsNull() {
            addCriterion("PCASE_ID is null");
            return (Criteria) this;
        }

        public Criteria andPcaseIdIsNotNull() {
            addCriterion("PCASE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPcaseIdEqualTo(Integer value) {
            addCriterion("PCASE_ID =", value, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdNotEqualTo(Integer value) {
            addCriterion("PCASE_ID <>", value, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdGreaterThan(Integer value) {
            addCriterion("PCASE_ID >", value, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PCASE_ID >=", value, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdLessThan(Integer value) {
            addCriterion("PCASE_ID <", value, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdLessThanOrEqualTo(Integer value) {
            addCriterion("PCASE_ID <=", value, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdIn(List<Integer> values) {
            addCriterion("PCASE_ID in", values, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdNotIn(List<Integer> values) {
            addCriterion("PCASE_ID not in", values, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdBetween(Integer value1, Integer value2) {
            addCriterion("PCASE_ID between", value1, value2, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andPcaseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PCASE_ID not between", value1, value2, "pcaseId");
            return (Criteria) this;
        }

        public Criteria andCheckDateIsNull() {
            addCriterion("Check_DATE is null");
            return (Criteria) this;
        }

        public Criteria andCheckDateIsNotNull() {
            addCriterion("Check_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andCheckDateEqualTo(Date value) {
            addCriterion("Check_DATE =", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateNotEqualTo(Date value) {
            addCriterion("Check_DATE <>", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateGreaterThan(Date value) {
            addCriterion("Check_DATE >", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateGreaterThanOrEqualTo(Date value) {
            addCriterion("Check_DATE >=", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateLessThan(Date value) {
            addCriterion("Check_DATE <", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateLessThanOrEqualTo(Date value) {
            addCriterion("Check_DATE <=", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateIn(List<Date> values) {
            addCriterion("Check_DATE in", values, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateNotIn(List<Date> values) {
            addCriterion("Check_DATE not in", values, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateBetween(Date value1, Date value2) {
            addCriterion("Check_DATE between", value1, value2, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateNotBetween(Date value1, Date value2) {
            addCriterion("Check_DATE not between", value1, value2, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorIsNull() {
            addCriterion("Check_Doctor is null");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorIsNotNull() {
            addCriterion("Check_Doctor is not null");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorEqualTo(String value) {
            addCriterion("Check_Doctor =", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorNotEqualTo(String value) {
            addCriterion("Check_Doctor <>", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorGreaterThan(String value) {
            addCriterion("Check_Doctor >", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorGreaterThanOrEqualTo(String value) {
            addCriterion("Check_Doctor >=", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorLessThan(String value) {
            addCriterion("Check_Doctor <", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorLessThanOrEqualTo(String value) {
            addCriterion("Check_Doctor <=", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorLike(String value) {
            addCriterion("Check_Doctor like", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorNotLike(String value) {
            addCriterion("Check_Doctor not like", value, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorIn(List<String> values) {
            addCriterion("Check_Doctor in", values, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorNotIn(List<String> values) {
            addCriterion("Check_Doctor not in", values, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorBetween(String value1, String value2) {
            addCriterion("Check_Doctor between", value1, value2, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckDoctorNotBetween(String value1, String value2) {
            addCriterion("Check_Doctor not between", value1, value2, "checkDoctor");
            return (Criteria) this;
        }

        public Criteria andCheckNameIsNull() {
            addCriterion("Check_Name is null");
            return (Criteria) this;
        }

        public Criteria andCheckNameIsNotNull() {
            addCriterion("Check_Name is not null");
            return (Criteria) this;
        }

        public Criteria andCheckNameEqualTo(String value) {
            addCriterion("Check_Name =", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameNotEqualTo(String value) {
            addCriterion("Check_Name <>", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameGreaterThan(String value) {
            addCriterion("Check_Name >", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameGreaterThanOrEqualTo(String value) {
            addCriterion("Check_Name >=", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameLessThan(String value) {
            addCriterion("Check_Name <", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameLessThanOrEqualTo(String value) {
            addCriterion("Check_Name <=", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameLike(String value) {
            addCriterion("Check_Name like", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameNotLike(String value) {
            addCriterion("Check_Name not like", value, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameIn(List<String> values) {
            addCriterion("Check_Name in", values, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameNotIn(List<String> values) {
            addCriterion("Check_Name not in", values, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameBetween(String value1, String value2) {
            addCriterion("Check_Name between", value1, value2, "checkName");
            return (Criteria) this;
        }

        public Criteria andCheckNameNotBetween(String value1, String value2) {
            addCriterion("Check_Name not between", value1, value2, "checkName");
            return (Criteria) this;
        }

        public Criteria andCountIsNull() {
            addCriterion("Count is null");
            return (Criteria) this;
        }

        public Criteria andCountIsNotNull() {
            addCriterion("Count is not null");
            return (Criteria) this;
        }

        public Criteria andCountEqualTo(Integer value) {
            addCriterion("Count =", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotEqualTo(Integer value) {
            addCriterion("Count <>", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThan(Integer value) {
            addCriterion("Count >", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("Count >=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThan(Integer value) {
            addCriterion("Count <", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThanOrEqualTo(Integer value) {
            addCriterion("Count <=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountIn(List<Integer> values) {
            addCriterion("Count in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotIn(List<Integer> values) {
            addCriterion("Count not in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountBetween(Integer value1, Integer value2) {
            addCriterion("Count between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotBetween(Integer value1, Integer value2) {
            addCriterion("Count not between", value1, value2, "count");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}